package com.testmanager.testmananger.quantitative.repository;

import com.testmanager.testmananger.quantitative.domain.IterationInfoEntity;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IterationInfoRepository extends JpaRepository<IterationInfoEntity,Long>, JpaSpecificationExecutor<IterationInfoEntity>,
        QuerydslPredicateExecutor<IterationInfoEntity> {

    List<IterationInfoEntity> findAllByOrderByStatusDesc();
    List<IterationInfoEntity> findAllByOrderByCreatedDate();
    List<IterationInfoEntity> findAllByStatusOrderByCreatedDateDesc(int status);
    IterationInfoEntity findById(long id);


}
